package com.jsh.config.exception;


import com.jsh.common.api.response.ResultCode;

/**
 * @Author JiangYaoFeng
 * 2021/5/27  4:55
 * 自定义异常
 */

public class CustomException extends RuntimeException {

    private ResultCode resultCode;

    public CustomException(ResultCode resultCode) {
        super(resultCode.message());
        this.resultCode = resultCode;
    }



    public ResultCode getResultCode() {
        return resultCode;
    }
}
